package com.example.demo.flypig;


public class Auu {


    static int j = 1000;

    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 2; i++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    for(int m=0;m<1000;m++){
                        j--;
                        if(j<=0){
                            return;
                        }
                        System.out.println(j);
                    }

                }
            }).start();
        }

    }


}
